package com.person.webdemoproject2.mapper;


import com.person.webdemoproject2.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SetAccountMapper {

    @Insert("insert into tb_user (username, password, create_time, update_time) VALUES (#{username},#{password},#{create_time},#{update_time})")
    void SetAccount(User user);
    @Select("select * from tb_user where username=#{username}")
    User FindUser(User user);
    @Select("select * from tb_user where username=#{username} and password=#{password}")
    User login(User user);

}
